<?php
namespace app\middleware;

class Command {
    public function handle($request, \Closure $next)
    {
        $event = $request->post("event");
        $message = $event['event']['message'];
        $model = \app\model\Command::where([
            'command_id' => $message['commandId'],
            'command_name' => $message['commandName']
        ])->find();
        
    }
}